<?php
//if (empty($this->hits)){
//    echo "Ничего не найдено.";
//} else {
//    foreach($this->hits as $hit){
//        echo "<li>{$hit->Title}</li>";
//        echo "<li>$hit</li>";
//        echo "<li>{$hit->Town}</li>";
//        echo "<li>{$hit->Address}</li>";
//    }
//    echo "</ul>";
//}
?>
<?php if (!empty($this->hits)): ?>
    <?php foreach ($this->hits as $hit): ?>
        <div class="hero-unit">
            <a href="<?php 
            $id = $hit->id;
            echo $this->url(array(
            'controller'=>'index',
            'action'=>'biz',
            'id'=>$id+1,
            ),false,true); ?>"><?php echo "{$hit->Title}"; ?></a>
            <address><br>
            <?php echo "{$hit->Town}"; ?><br>
            <?php echo "{$hit->Address}"; ?><br>
            </address>
            <p><?php echo "{$hit->About}"; ?></p>
            </div>
    <?php endforeach ?>
<?php else: ?>
<div class="hero-unit">
<p>ничего не найдено.</p>
</div>
<?php endif; ?>